package com.va1m.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author Admin
 * t_member的实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_member")
public class Member {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 会员时长 以月为单位
     */
    @TableField(value = "active_time")
    private Integer activeTime;
    /**
     * 价格
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 描述信息
     */
    @TableField(value = "description")
    private String description;
}
